<?php
class AboutController extends AdminAppController
{
    public $uses = array('Admin.About');


    public function index()
    {
        $aboutData = $this->About->getAboutData();
        if ($this->request->is('get')) {
            $this->request->data = $aboutData;
        } else {
            try {
                $this->About->saveAboutData($this->request->data, $aboutData);           
                $this->Session->setFlash(__('The data has been saved'));
                $this->redirect(array('action' => 'index'));
            } catch (Exception $e) {
                debug($e->getMessage());  
            }
        }
    }

    public function _mergeData($case)
    {
        $request = $this->request->data['Admin']['Case'];
        return $this->request->data; 
    }
}
